package com.smart.buss.ctrl;

import com.smart.buss.service.BussSetService;
import com.smart.buss.vo.BussSet;
import com.smart.primary.common.common.BaseCtrl;
import com.smart.primary.common.util.AjaxResult;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/buss/set")
public class BussSetController extends BaseCtrl {

	@Autowired
	private BussSetService bussSetService;

	@RequestMapping
	public AjaxResult getList(BussSet entity) throws Exception{
		List<BussSet> list=bussSetService.queryListByPage(entity);
		return getResult(entity, list);
	}


	@RequestMapping("/save")
	public AjaxResult save(BussSet entity) throws Exception{
		bussSetService.update(entity);
		return AjaxResult.saveSuccess();
	}

}
